package com.foreknow.demo7;

public class A {
    public void m1() {
        System.out.println("m1......");
        //调用B类中的m2方法
        B b = new B();
        b.m2();
    }

    public static void main(String[] args) {
        A a = new A();
        a.m1();
    }
}
